<template>
  <!-- 取消了列表模式展示数据  该组件暂时无用  -->
  <div class="linkageCentent">
    <my-table
      :tableData="contentData"
      :tableConfig="tableConfig"
      :totalCount="65"
    >
      <template #handle="scope">
        <div class="btnGroup" :key="scope.index">
          <el-button size="mini">操作</el-button>
          <el-button size="mini">详情</el-button>
        </div>
      </template>
    </my-table>
  </div>
</template>

<script>
import myTable from "@/components/myTable/myTable";
import { tableConfig } from "../config";
export default {
  components: {
    myTable
  },
  data() {
    return {
      totalCount: 456,
      contentData: [
        {
          value1: "电梯管理",
          value2: "图书馆东侧电梯1",
          value3: "图书馆",
          value4: "当电梯故障时",
          value5: "视频监控",
          value6: "电梯监控球机1",
          value7: "图书馆-电梯轿厢1",
          value8: "弹出电梯监控画面",
          value9: "2021-07-11 11:09:22",
          value10: "启用"
        }
      ],
      tableConfig: tableConfig
    };
  },
  methods: {
    selectionChange(data) {
      this.selectCount = data.length || 0;
    },

    // 假数据
    initDataTest() {
      for (let i = 0; i < 9; i++) {
        const data = JSON.parse(JSON.stringify(this.contentData[0]));
        data.value1 = "电梯管理" + (i + 1);
        this.contentData.push(data);
      }
    }
  },
  mounted() {
    this.initDataTest();
  }
};
</script>

<style lang="scss" scoped></style>
